# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class InstanceSpec(object):

    def __init__(self, vpcId, subnetId, instanceVersion, instanceName, azId, instanceClassSpec, ipVersion=None, extension=None):
        """
        :param vpcId:  私有网络vpcId
        :param subnetId:  子网subnetId
        :param ipVersion: (Optional) ipVersion，空(代表v4)或者v4&v6
        :param instanceVersion:  kafka版本，当前支持1.0.2
        :param instanceName:  kafka集群名称，不可为空，只支持大小写字母、数字、英文下划线或者中划线，以字母开头且不能超过32位
        :param azId:  azId
        :param instanceClassSpec:  集群规格配置
        :param extension: (Optional) 扩展配置
        """

        self.vpcId = vpcId
        self.subnetId = subnetId
        self.ipVersion = ipVersion
        self.instanceVersion = instanceVersion
        self.instanceName = instanceName
        self.azId = azId
        self.instanceClassSpec = instanceClassSpec
        self.extension = extension
